package base.java.common.dao;

import java.sql.SQLException;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;


/**
 * 
 * @Package base.java.common.dao
 *
 * @Title: BaseDao.java 
 *	
 * @Description: 操作数据库基础操作
 *
 * @Copyright:   Copyright (c)2010
 *
 * @Company:      折扣网工作组
 *
 * @author:      付奎
 *
 * @date 2010-8-14 下午05:56:24
 *
 * @version V1.0   
 *
 */
public abstract class BaseDao extends SqlMapClientDaoSupport{
	
	
	/**
	 * 生成异常描述信息
	 * 
	 * @param msg
	 * @param e
	 * @return
	 */
	protected String buildError(String msg, Exception e) {
		StringBuffer error = new StringBuffer(500);
		error.append(msg).append(":");
		if (e != null) {
			error.append(e.getMessage());
		}
		return error.toString();
	}
	
	
	protected void insertDataByExcuteSql( String sql )throws SQLException {
		
	}
	
}
